package com.service.approval.service;

import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.service.approval.valuedata.InsurancePolicy;

@FeignClient(value="distributer-policy-server")
public interface InsurancePolicyService {

	@RequestMapping(value="/policy/banlance/port",method=RequestMethod.GET)
	public String policyBanlanceTest();
	
	@RequestMapping(value="/policy",method=RequestMethod.POST)
	public Map<String, String> createPolicy(@RequestBody InsurancePolicy insurancePolicy);
}
